xend: Fix xm pci-detach for inactive devices
authorKeir Fraser <keir.fraser@citrix.com>
Tue, 26 May 2009 09:03:09 +0000 (10:03 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Tue, 26 May 2009 09:03:09 +0000 (10:03 +0100)
commitb562a316db926c871aac5e9484372c2f7c3d1e60
tree62b665bbb3b2b822bca85ab39b7ca8dd338843e2
parentd05ae13188231e3bc3673e0796d8b063b1d59cff
xend: Fix xm pci-detach for inactive devices

In the case where a device is attached to an inactive domain
and then removed before the domain is activated it won't have
a vslot assigned, but it should still be valid to remove it.

I don't think that there are any other cases where vslot can
be invalid.
Signed-off-by: Simon Horman <horms@verge.net.au>
tools/python/xen/xend/XendDomainInfo.py